home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / freq_qa / offlnfaq.zip / YARNUQWK.TXT < prev   
Internet Message Format  |  1994-06-12  |  25KB

  1. From: samik@uta.fi (Sami K|ykk{)
  2. Newsgroups: news.software.readers,alt.usenet.offline-reader,comp.os.msdos.mail-news
  3. Subject: INFO: How to use uqwk & yarn.
  4. Date: 10 May 1994 16:47:20 +0300
  5. Organization: University of Tampere, Finland
  6. Lines: 187
  7. Message-ID: <2qo398INN4le@kielo.uta.fi>
  8. Reply-To: samik@kaktus.uta.fi
  9. NNTP-Posting-Host: kalliokielo.uta.fi
  10. Xref: rtp.vnet.net news.software.readers:8571 alt.usenet.offline-reader:2505 comp.os.msdos.mail-news:1570
  11. X-Status: R
  12.  
  13. I've written a small manual about reading the news offline with uqwk
  14. and yarn.
  15.  
  16. This file is public domain. You can add it to FAQ's, give it to your
  17. friends interestered in offline reading etc. Just keep the author
  18. information in the text.
  19.  
  20. This text is also available via WWW and Gopher. With WWW, use URL:
  21. http://www.uta.fi/manuals/offline.html
  22.  
  23. With Gopher, use bookmark:
  24.  
  25. Type=0+
  26. Name=Offline reader's manual
  27. Path=0/information_in_english/Documents/uqwk.english
  28. Host=gopher.uta.fi
  29. Port=70
  30.  
  31. Feel free to link this text into your own servers.
  32.  
  33. Here comes the manual:
  34.  
  35.  
  36.         How do I read news and mail on my PC, offline?
  37.         ----------------------------------------------
  38.               Examples for uqwk and Yarn
  39.              by Sami Koykka 1994
  40.              samik@kaktus.uta.fi
  41.  
  42. Software authors (big thanks to them!)
  43. uqwk: Steve Belczyk (seb3@gte.com)
  44. Yarn: Chin Huang (cthuang@io.org)
  45.  
  46. This message was written with a notebook computer on a living room
  47. sofa using Yarn version 0.58. It was delivered to you by uqwk version
  48. 1.8.
  49.  
  50. If you don't want to keep your phone line busy, if you want to make
  51. your phone bill smaller or you don't have a modem, but you still want
  52. to read news and mail at home taking your time, this manual is for
  53. you.
  54.  
  55. You need an Unix account, some experience in using Unix and MS-DOS (or
  56. a personal guru), a PC and disk space. If you don't have a modem, you
  57. will need a way to move files from your Unix account to your PC. For
  58. example, I use diskettes.
  59.  
  60. Setup
  61. =====
  62. Ftp yourself the latest copy of the Yarn newsreader. You will also
  63. need to get the pkzip/pkunzip package for your PC if you don't already
  64. have it. On your Unix account, you will need uqwk, zip and unzip
  65. commands.
  66.  
  67. You can find the latest version of uqwk at ftp.gte.com:/pub/uqwk/
  68. The latest version of Yarn is at oak.oakland.edu:/pub/msdos/offline/
  69. The zip for unix is at ftp.uu.net:/pub/archiving/zip/
  70. The pkzip package for pc is at garbo.uwasa.fi:/pc/arcers/
  71.  
  72. You can find those packets at other sites, also; search with archie.
  73.  
  74. *** NOTE: Do NOT run uqwk to check whether your system has uqwk;
  75. instead, enter 'which uqwk'. If the command 'which' doesn't work, try
  76. command 'uqwk +r'.
  77.  
  78. If you type 'uqwk' without any parameters, you will lose your
  79. mail. Actually, you will move all your mail from the mailbox into a
  80. QWK packet, which is almost as bad (unless you know how to use QWK
  81. readers).
  82.  
  83. If your account doesn't already have uqwk, compile it (read the
  84. documentation and change the parameters in uqwk.h if necessary). Also
  85. compile zip and unzip if your system don't have them. If you don't
  86. know how to compile programs, please ask your system administrator or
  87. a personal guru.
  88.  
  89. Download Yarn to your PC. Install Yarn following the documentation.
  90. Don't forget to edit the configure file! Download and install pkzip
  91. and pkunzip if you have managed to live without them this far.
  92.  
  93. Collecting news
  94. ===============
  95. Make sure you have enough disk space for news in your PC and enough
  96. quota on yor account. A couple of megabytes should be enough.
  97.  
  98. Collect news and/or mail with one of the following commands:
  99.  
  100.   uqwk -m +n +L
  101.   uqwk +m +n +L
  102.   uqwk +m -n +L
  103.  
  104. The first one collects only unread news and no mail. Second collects
  105. both unread news and all mail. Third one collects only your e-mail.
  106.  
  107. (Technical info: +L stands for SOUP format)
  108.  
  109. *** Note that uqwk deletes all collected mail from your mailbox (if
  110. you use +m) and marks newsgroups as read (if you use +n)! If you don't
  111. want them deleted, add the parameter +r to the uqwk command line, or
  112. read (in the uqwk manual) how to collect only certain newsgroups and
  113. certain mail folders.
  114.  
  115. Uqwk stops collecting when it has collected 0.5 megabytes of news, and
  116. leaves the rest as unread. If you want to collect all the unread news
  117. there is, add parameter -B0 to the uqwk command line. Uqwk always
  118. collects all the mail you have.
  119.  
  120. Note that all the unread news can make a very big packet, especially
  121. if you subscribe to binaries newsgroups. You can tell uqwk excatly how
  122. much news you want to collect; read the manual page for more
  123. information.
  124.  
  125. After uqwk has finished, there are lots of small files in your
  126. directory. Don't worry; those will disappear after packing.
  127.  
  128. Packing news
  129. ============
  130. Pack collected news using command:
  131.  
  132.   zip -mk news.zip *.MSG AREAS
  133.  
  134. The resulting file news.zip is your SOUP-format news packet (you can
  135. use a different name, if you want). Download it to your PC. After
  136. downloading, delete the news.zip file from your Unix account since you
  137. need it only on PC.
  138.  
  139. Reading news
  140. ============
  141. In your PC, let Yarn process your news packet using command line:
  142.  
  143.   IMPORT NEWS.ZIP
  144.  
  145. After the import has finished, read the news using Yarn. If you don't
  146. see any newsgroups in Yarn, try subscribing to some using the Ins
  147. key. When you have read all news, run expire. Expire will delete all
  148. news which have been on your hard drive long enough. "Long enough" is
  149. one of the things you decide while installing Yarn.
  150.  
  151. Sending replies
  152. ===============
  153.  
  154. If you have made follow-up posts or sent mail, you need to upload the
  155. reply packet to your Unix machine for sending. If you forgot where the
  156. reply packet is, check the Yarn configuration. You should've told Yarn
  157. the location of the packet when installing. After uploading, delete
  158. the reply packet from the PC. You only need it on Unix.
  159.  
  160. In the Unix system, unzip the reply packet (for example, replies.zip)
  161. using the command:
  162.  
  163.   unzip -U replies.zip
  164.  
  165. Two or three files will result. Delete the reply packet (replies.zip)
  166. after unzipping, since you don't need it anymore.
  167.  
  168. Feed the replies to uqwk:
  169.  
  170.   uqwk -m -n +L -RREPLIES
  171.  
  172. If you want to collect more news with the same command, change the -m
  173. and -n parameters, or go to the beginning of this manual.
  174.  
  175. That's it! For more information and hints read the uqwk man page and
  176. Yarn documentation.
  177.  
  178. Have fun,
  179.     Sami
  180.  
  181. Changes:
  182. ========
  183. 13.4.1994
  184. - Some syntax corrections. Thanks to Dick Miller (dmiller@im.lcs.mit.edu)!
  185. 5.4.1994
  186. - HTML version made available via WWW in URL
  187.   http://www.uta.fi/manuals/offline.html
  188. 15.3.1994
  189. - Added help for those who don't have 'which' in their system.
  190. - In "collecting all the news", parameter -L0 was wrong. The correct
  191.   parameter is -B0. Also, the -B only affects collection of news, not
  192.   mail.
  193. - Added the locations for software mentioned and credits for authors.
  194. - Changed layout.
  195.  
  196. --
  197. Sami K|ykk{                +----------------------------+    
  198. samik@kaktus.uta.fi            !       couch potato         !
  199. http://www.uta.fi/~samik/samik.html    +----------------------------+
  200. ⁿ1Path: rtp.vnet.net!news.sprintlink.net!qns1.qns.com!constellation!osuunx.ucc.okstate.edu!newsfeed.ksu.ksu.edu!moe.ksu.ksu.edu!crcnis1.unl.edu!wupost!gumby!newsxfer.itd.umich.edu!zip.eecs.umich.edu!panix!not-for-mail
  201. From: cannon@panix.com (Kevin Martin)
  202. Newsgroups: alt.usenet.offline-reader
  203. Subject: How-to for uqwk & yarn
  204. Date: 26 May 1994 14:01:28 -0400
  205. Organization: Brass Cannon Consulting
  206. Lines: 409
  207. Message-ID: <lZDvjqtC8Si8064yn@panix.com>
  208. NNTP-Posting-Host: panix.com
  209. Summary: Terminal emulator script, Unix script, DOS BAT file
  210. Keywords: Yarn uqwk sample
  211. X-Status: R
  212.  
  213. Sorry for the length of this, but it's all plaintext; zipping and
  214. uuencoding it seems to defeat the purpose of making it accessible
  215. to beginners, yes?
  216.  
  217.   YARN AND UQWK -- A Hands-On Guide by Kevin Martin (cannon@panix.com)
  218.  
  219. Attached are three separate sample files that work together to create
  220. a complete end-to-end DOS/Windows offline news and mail system.  You
  221. will need to customize each file to make the system work with your Usenet
  222. provider.
  223.  
  224. The three parts are:
  225.  
  226.  (1) A PROCOMM PLUS FOR WINDOWS SCRIPT (SOUP.WAS) that logs on to
  227. a service and automates the uploading of reply packets. Automating
  228. the process cuts down on the chance of human error; the script is
  229. somewhat overwritten because it is meant to run unattended.
  230.  
  231. When "compiled," the .WAS file will create a .WAX file.  I'm using
  232. Procomm's default directory names, but check yours.
  233.  
  234. This is the LEAST important part of the system -- if you're not
  235. using Procomm Plus for Windows, use this script as a checklist.
  236. You can still enter the important commands at the keyboard.
  237.  
  238.  (2) A UNIX SCRIPT ($HOME/bin/soup -- lowercase, no file extension)
  239. to run uqwk and its support programs (zip, unzip, sz, rz).  I assume
  240. all these programs are available on your Unix host and located in
  241. a directory found on your PATH. (As in DOS, the Unix PATH is a string
  242. that lists the directories where executable programs can be found.)
  243.  
  244.  (3) A DOS .BAT FILE (SOUP.BAT) to run the Yarn program on your
  245. PC.  Note that this can be associated with a Windows 3.1 icon!
  246. Yarn runs very well under Windows, and if you press ALT-Enter to
  247. make it a windowed session rather than full-screen, you can even
  248. use the Windows Clipboard!
  249.  
  250. Here's a Windows trick: In your WINDOWS\SYSTEM.INI file, under the
  251. [NonWindowsApp] section, add the line CommandEnvSize to give your
  252. DOS sessions extra environment space:
  253.  
  254.   [NonWindowsApp]
  255.   CommandEnvSize=400
  256.  
  257. Now you will be able to run SOUP.BAT under Windows, and you don't
  258. have to define the Yarn environment variables in AUTOEXEC.BAT.
  259.  
  260. I have two Windows icons set up -- one invokes Procomm Plus with
  261. the compiled SOUP script:
  262.  
  263. Command: C:\PROWIN\PW.EXE C:\PROWIN\ASPECT\SOUP.WAX
  264.  
  265. Double-clicking this icon logs me on, uploads my replies, downloads
  266. any new mail and news, and logs me off.  The other icon runs SOUP.BAT
  267. which imports the new download, runs Yarn, and expires the old news
  268. when I exit.  It doesn't get much simpler than that!
  269.  
  270. You will also need YARN (0.64 recommended), some kind of DOS text
  271. editor (I like TED 3.0), and PKzip/PKunzip.  READ THE YARN.DOC FILE
  272. THAT COMES WITH YARN!
  273.  
  274. Each script/batch file has comments to explain what is going on.
  275. The different types of comment lines are:
  276.  
  277.   ; = Procomm Aspect language     # = Unix       REM = DOS
  278.  
  279. You may need to use the Unix flip utility on the Unix script to strip
  280. off the trailing DOS carriage return (^M) bytes.  ("flip -u soup")
  281.  
  282. Good luck and good reading!
  283.  
  284. ! cut here -------------------------------
  285. ; PART 1 of 3 - THIS IS A PROCOMM PLUS FOR WINDOWS "ASPECT" SCRIPT
  286. ; It is run on your (Windows) PC and requires Datastorm's Procomm
  287. ; Plus for Windows.
  288. proc main
  289. ; This script has three main steps:
  290. ; (1) Log on to the service provider...
  291.   call log_us_in
  292. ; (2) Run the Unix script from the command line...
  293.   call soup
  294. ; (3) Log off and close the Procomm window.
  295.   call log_us_off
  296. endproc
  297.  
  298. proc log_us_in
  299. ; Procomm Plus comes with a tool to generate a dial-in script.
  300. ; I have NOT taken full advantage of that in this example.
  301. ;
  302. ; Send the dial string, wait up to 45 seconds for the modem
  303. ; to recognize the connection.
  304.    transmit "ATDT5551212^M"
  305.    waitfor "CONNECT" 45
  306.    if FAILURE
  307.         errormsg "Couldn't connect!"
  308.         transmit "+++ATH"
  309.         exit
  310.    endif
  311. ; This part is dependent on the specific service provider:
  312.    waitfor "hich service, please?^M^J"
  313.    transmit "panix^M"
  314.    waitfor ": " 6
  315.    if failure
  316.         hangup
  317.         usermsg "Panix is not up?!?"
  318.    endif
  319. ; Userid and password are in the Procomm "Dialing Directory"...
  320.    transmit $USERID
  321.    transmit "^M"
  322.    waitfor ":" 6
  323.    if failure
  324.         hangup
  325.         usermsg "Panix is not up?!?"
  326.    endif
  327.    transmit $PASSWORD
  328.    transmit "^M"
  329. ; I've "taught" Panix what terminal type to use; you may need to
  330. ; restore the next four lines by removing the semicolons:
  331. ;
  332. ;  waitfor "(vt100) " 4
  333. ;  if success
  334. ;       transmit "^M"
  335. ;  endif
  336. ;
  337. ; Look for the command line prompt -- I don't depend on the first
  338. ; letter always staying the same case:
  339.    waitfor "anix%" 3
  340.    if failure
  341.      call motdkill
  342.    endif
  343. endproc
  344.  
  345. proc motdkill
  346. ; Oh, yeah - if the Message of the Day is more than one screen,
  347. ; we have to hit the spacebar to continue.
  348.    integer k = 0
  349. kill_motd:
  350.    if k > 3
  351.      transmit "^M"
  352.      k = 0
  353.    endif
  354.    waitfor "anix%" 2
  355.    if failure
  356.      transmit " "
  357.      k = k + 1
  358.      goto kill_motd
  359.    endif
  360. endproc
  361.  
  362. proc soup
  363.    string pac = "c:\prowin\dnload\newsfile.zip"
  364.    string rep = "c:\prowin\upload\panix.rep"
  365.    string sav = "c:\prowin\dnload\panix.xxx"
  366.    string tmp
  367.    integer status
  368.    integer i=0
  369.    string a
  370.  
  371. ; IMPORTANT!  sz WILL NOT OVERLAY AN EXISTING FILE!
  372. ; DO THIS TEST TO BE SURE OF GETTING YOUR NEW DOWNLOAD!
  373. ; Put away unread packet file, if any...
  374.    isfile pac
  375.    if success
  376. ;    usermsg "Saved an unread packet as panix.xxx"
  377.      rename pac sav
  378.    endif
  379.  
  380. ; Process pending reply, if any...
  381.    isfile rep
  382.    if success
  383.      transmit "rz^M"
  384.      pause 1
  385.      sendfile zmodem rep
  386.      status=$FILEXFER
  387.      while status==1
  388.       status=$FILEXFER
  389.      endwhile
  390.      if status==2
  391.       delfile rep
  392.      endif
  393.      pause 1
  394. ;                        ** SEE NOTE! **
  395. ;    transmit "soup^M"
  396.    endif
  397.  
  398. ; -----------------------------------------------------------
  399. ; NOTE: This is the setup to use if you are in the habit of
  400. ; reading and replying immediately, and you do not want to
  401. ; pick up the few stray messages that have arrived in the
  402. ; meantime.  If you want to run once a day, then REMOVE THE
  403. ; LEADING ";" from the transmit line above.  That way you
  404. ; will post your replies to yesterday's mail and news, and
  405. ; pick up today's packet with just one phone call.
  406. ; -----------------------------------------------------------
  407.  
  408. ; If you want to use trnkill, here's where you invoke it  (I
  409. ; installed it in my bin directory, same as the soup script):
  410.  
  411.    transmit "trnkill^M"
  412.  
  413. ; Do the next line unconditionally:
  414.  
  415.    transmit "soup^M"
  416.  
  417. ; Wait up to ten minutes for the Zmodem download to finish:
  418.    when filexfer call file_proc
  419.    waitfor "Done!!!" 600
  420. endit:
  421.    waitfor "anix%" 4
  422.    if failure
  423.      transmit "^M"
  424.      goto endit
  425.    endif
  426. endproc
  427.  
  428. proc file_proc
  429. ; This continues to wait if the download is still going on --
  430. ; although ten minutes is a LONG time at 14,400!
  431.    integer status
  432.    status=$FILEXFER
  433.    while status==1
  434.       status=$FILEXFER
  435.    endwhile
  436. endproc
  437.  
  438. proc log_us_off
  439. ; Ctrl-D = Unix logoff; "exit^M" works, too
  440.    transmit "^D"
  441.    pause 2
  442. ;
  443. ; Protect us if the Panix terminal server fails to drop carrier --
  444. ; the phone company keeps billing unless SOMEONE hangs up!
  445. ;
  446.    waitfor "NO CARRIER" 8
  447.    if failure
  448.      transmit "+++"
  449.      transmit "ATH^M"
  450.      pause 2
  451.    endif
  452. ;
  453. ; Optional:  Close the Procomm window. (I do this because I have
  454. ; a scheduler waiting to start up another communications program.)
  455. ;
  456.    closepw
  457. endproc
  458. ;  END OF PROCOMM SCRIPT
  459.  
  460. ! cut here --------------------------------------
  461.  
  462. # PART 2 OF 3 - THIS IS A UNIX SCRIPT TO BE RUN ON YOUR HOST
  463. # soup - Unix zsh script file to process HDPF/SOUP packets;
  464. #        for use with the YARN offline newsreader
  465. #----
  466. # cannon@panix.com (KM) last mod: 5/26/94
  467. #----
  468. #                Note the following assumptions!
  469. #
  470. # (1) You have set up an (empty) "ntmp" directory directly under
  471. # your login (HOME) directory, in which it is OK to do "rm *" -
  472. # don't keep anything there you don't want to lose!  For example,
  473. # if "Host% " is your interactive command line prompt:
  474. #
  475. #  Host%  cd
  476. #  Host%  mkdir ntmp
  477. #  Host%  chmod 700 ntmp
  478. #
  479. # (2) You have a current .newsrc file (from running rn or trn
  480. # interactively) in your HOME directory, which uqwk can update.
  481. #
  482. # (3) Files used:
  483. # newsfile.zip = Mail and News from panix created by this script
  484. # panix.rep = Replies to panix, uploaded to my $HOME directory
  485. #             by the comm program script (soup.wax) on my PC
  486. #
  487. # (4) How to install the soup script:
  488. # Make a bin directory under your $HOME and install this script
  489. # (lowercase "soup", no extension) there.  You must make it
  490. # executable by changing its "mode" with chmod:
  491. #
  492. #  Host%  cp soup bin
  493. #  Host%  chmod 700 bin/soup
  494. #
  495. # You also need to add the bin directory to your PATH by doing
  496. # something like the below -- otherwise you'll get a "File not
  497. # found" message when you try to run it.  Ask a local guru
  498. # for help making this change permanent (you'll have to find and
  499. # edit the correct "login" script for your account -- .profile,
  500. # .cshrc, .zlogin, etc....):
  501. #
  502. #  Host%  set PATH=$PATH:$HOME/bin
  503. #  Host%  export PATH
  504. #
  505. # Okay, enough preliminaries!  Here's the script:
  506. #----
  507. # Set uqwk parameters:
  508. #
  509. # Update the .newsrc and empty the mail spool -- you may want
  510. # to set this to 1 until you are confident everything works!
  511. UQ_READ_ONLY=0
  512. #
  513. UQ_HOME_DIR=$HOME/ntmp
  514. UQ_NRC_FILE=$HOME/.newsrc
  515. #
  516. # Set up for SOUP mode, same as +L command line switch:
  517. UQ_HDPF_MODE=1
  518. #
  519. # Honor cross-references:
  520. UQ_XRF_MODE=1
  521. #
  522. # No limit on the packet size:
  523. UQ_MAX_BLKS=0
  524.  
  525. export UQ_READ_ONLY UQ_HOME_DIR UQ_NRC_FILE
  526. export UQ_HDPF_MODE UQ_XRF_MODE UQ_MAX_BLKS
  527.  
  528. # Stop the "You have mail" notifier:
  529. biff n
  530. # Make sure we're where we're supposed to be on the disk:
  531. cd
  532. cd ntmp
  533.  
  534. # Check for existence of a newsfile.zip file:
  535. if [ -f "newsfile.zip" ]
  536. then
  537. # A previous download run failed?  recover it:
  538.         echo Warning - found an unsent newsfile.zip file
  539.         sz -bnu newsfile.zip && rm - *
  540.         echo All Done!!!
  541.         exit
  542. fi
  543.  
  544. # This version will EITHER post replies OR download a new
  545. # packet of news and mail -- just run it twice if you want
  546. # to do both....
  547.  
  548. rm - *
  549. if [ -f "$HOME/panix.rep" ]
  550. then
  551.         echo Found reply packet...
  552.         mv $HOME/panix.rep $HOME/ntmp/replyfile.zip
  553.         unzip -U replyfile && rm replyfile.zip
  554.         if [ -f "REPLIES" ]
  555.         then
  556.                 echo Processing reply packet...
  557.                 uqwk -m -n -RREPLIES
  558.                 rm *
  559.         fi
  560. else
  561.         echo Gathering news and mail...
  562.         uqwk +m +n
  563.         zip newsfile *
  564.         sz -bnu newsfile.zip && rm *
  565. fi
  566. cd
  567. # The PC script looks for this message to know we're done:
  568. echo All Done!!!
  569. # Tell biff to go back to work:
  570. biff y
  571.  
  572. #
  573. #  end of soup script
  574. #
  575.  
  576. ! cut here  -------------------------------
  577.  
  578. REM PART 3 of 3 - THIS IS SOUP.BAT, a DOS "wrapper" for YARN 0.64
  579. REM IMPORTANT -- Don't call it YARN.BAT, because that will conflict
  580. REM with YARN.EXE !  (It's a DOS thing....)
  581. @echo off
  582. REM -----
  583. REM  This is %0.BAT which invokes the Yarn reader on your PC
  584. ECHO Read the Yarn documentation before you try to use %0 !
  585. ECHO You have to EDIT this file to set the correct value for HOME,
  586. ECHO and you must create/edit your %HOME%\CONFIG. file.
  587. EXIT
  588. REM Remove everything between the ----- lines once you have
  589. REM configured this file properly. It WILL NOT RUN until you do!
  590. REM -----
  591. REM   Replace "cannon" with your username:
  592. set home=c:\cannon
  593. REM   This is a default value:
  594. set yarn=c:\yarn
  595. REM   This is a Procomm default value - replace with your actual
  596. REM   download directory and filename:
  597. set packet=c:\prowin\dnload\newsfile.zip
  598. REM   Next line is optional and requires the ANSI.SYS driver in
  599. REM   your CONFIG.SYS:
  600. REM mode con lines=43
  601. REM   Log on to correct drive and directory:
  602. c:
  603. cd %yarn%
  604. if exist %packet% import %packet%
  605. yarn
  606. expire
  607. REM You may optionally use the -r option to delete ALL messages
  608. REM that have been read:
  609. REM expire -r
  610. REM END OF SOUP.BAT
  611.  
  612. ! cut here ----------------------------------------------
  613.  
  614.                         END OF SAMPLE FILES.
  615.  
  616. Permission is granted to Chin Huang to use, modify and/or distribute
  617. any of the above information in any future Yarn distribution, if and
  618. as he deems it suitable.    KM 5/26/94
  619. --
  620.        cannon@panix.com <Kevin Martin> --- Brass Cannon Consulting
  621.  
  622. ╟Path: rtp.vnet.net!ankh.iia.org!babbage.ece.uc.edu!news.kei.com!sol.ctr.columbia.edu!newsxfer.itd.umich.edu!zip.eecs.umich.edu!panix!not-for-mail
  623. From: cannon@panix.com (Kevin Martin)
  624. Newsgroups: alt.usenet.offline-reader
  625. Subject: Re: How-to for uqwk & yarn (additions and questions)
  626. Date: 28 May 1994 06:47:52 -0400
  627. Organization: Brass Cannon Consulting
  628. Lines: 109
  629. Message-ID: <M6evjqtC88t3064yn@panix.com>
  630. References: <lZDvjqtC8Si8064yn@panix.com> <jGJvju2nwqEB065yn@login.dkuug.dk>
  631. NNTP-Posting-Host: panix.com
  632. X-Status: R
  633.  
  634. In article <jGJvju2nwqEB065yn@login.dkuug.dk>, Henrik Roseno wrote:
  635. > In article <lZDvjqtC8Si8064yn@panix.com>, Kevin Martin wrote:
  636. > > You will also need YARN (0.64 recommended), [...]
  637. >
  638. > What's the problem with v0.65 ?
  639.  
  640. Haven't tried it. :-) I'm willing to state in public that I haven't
  641. had any problems with 0.64, though.
  642.  
  643. >
  644. > > You may need to use the Unix flip utility on the Unix script to strip
  645. >                                                               ^
  646. >                                                     before uploading it
  647.  
  648. Eh?  I was thinking you would edit it on your DOS PC, upload it, then
  649. flip it....  But then again, if you "sz" it TO your host from your PC,
  650. that may also have the same effect as flip -- end-of-line conversion
  651. is a switchable Zmodem feature, I believe.  If you're reading this using
  652. trn and editing it on your Unix host, though, never mind.
  653.  
  654. >
  655. > I would like a Telix-script instead...
  656.  
  657. By all means please share it with the group when you write it. ;-)
  658.  
  659. > > UQ_READ_ONLY=0
  660. > >
  661. > > export UQ_READ_ONLY
  662. >
  663. > The above isn't necesary. Instead use the command line options when
  664. > calling uqwk.
  665. >
  666.  
  667. I "inherited" this approach from another fellow who prefered to define
  668. ALL the uqwk variables in his .profile (!)  No accounting for tastes....
  669.  
  670. >
  671. > I use these 2 small scripts, one for sending and one for receiving
  672. > messages:
  673. >
  674. > #!/bin/sh
  675. > rz
  676. > unzip -oU upload.zip
  677. > uqwk -m -n +L -RREPLIES
  678. > rm upload.zip
  679. >
  680. > #!/bin/sh
  681. > if [ -f "offline.zip" ]
  682. > then
  683. >   echo Warning - found an unsent offline.zip file!
  684. >   sz -u offline.zip
  685. > fi
  686. > uqwk +m +n +x +L -Nuqwknewsrc
  687. > zip -mk9 offline AREAS *.MSG
  688. > sz -u offline.zip
  689. >
  690. > I don't need a separate directory for this, it's all happening in my
  691. > $HOME directory.
  692.  
  693. Nice scripts!  When I started with qwk, I felt safer using a directory
  694. where I was free to "rm *"; just another question of style.  (Note: the
  695. zip -m and sz -u command options have similar effects; they remove
  696. the input files once they've served their purpose.  They're somewhat
  697. cleaner and perhaps less dangerous than my explicit rm command.  See
  698. my most recent tale of woe at the end of this posting.)
  699.  
  700.  
  701.  (Sidebar:  The syntax "rm - *" in mine is a holdover from when I was
  702.  still using qwk -- it will remove files such as "-001.ndx", which uqwk
  703.  creates if you send it a SUBSCRIBE message in qwk mode.  That leading
  704.  hyphen caused some of us Unix virgins a bit of tsuris, Steve!)
  705.  
  706.  
  707. > From the DOS batch file:
  708. > > expire
  709. > > REM You may optionally use the -r option to delete ALL messages
  710. > > REM that have been read:
  711. > > REM expire -r
  712. >
  713. > Isn't it supposed to delete ONLY messages that have been read...?
  714. > Or is that a matter of words ?
  715.  
  716. I'm not sure; I'm in the habit of reading or junking EVERYTHING daily,
  717. so "expire -r" would leave me with NOTHING in my newsbase.  I prefer
  718. to let things expire in three days so I'll have a bit of context.
  719.  
  720. I know I'm still learning... for instance, I lost a packet Thursday
  721. morning because my routine was disrupted.  I normally copy my packet
  722. to a portable machine and then import it both there and on my desktop.
  723. But I didn't read in the Wednesday packet on my desktop after copying
  724. it.
  725.  
  726. That shouldn't hurt -- you can see the code in my Procomm script to
  727. handle that, by renaming the file away?  But I had moved some directories
  728. around and never recreated the target directory used by that rename.
  729.  
  730. Now, Zmodem does not like to send a file if there is already (or still)
  731. one by the same name on my PC.  The "sz file && rm *" syntax is only
  732. supposed to do the "rm *" if the "sz file" is successful -- but it's not
  733. foolproof.  It did the remove anyway, and my packet went bye-bye.
  734.  
  735. What's the best solution?  Maybe I should adopt the syntax you're using.
  736. Or do the cleanup from the Procomm script instead of the Unix script,
  737. since it can confirm on the PC that I've truly received the file!
  738.  
  739. Thanks for contributing, Henrik.
  740. --
  741.        cannon@panix.com <Kevin Martin> --- Brass Cannon Consulting
  742.  
  743.